package com.yuncheng.oaApi.service;

import com.yuncheng.common.base.service.BaseService;
import com.yuncheng.spcyApi.entity.SpcyRsJjrk;

import java.math.BigDecimal;
import java.text.ParseException;
import java.util.Date;
import java.util.List;

/**
 * @Description: 审评查验-节假日库
 * @Author: csx
 * @Date: 2023-03-03
 * @Version: V1.0
 */
public interface IOaSpcyRsJjrkService extends BaseService<SpcyRsJjrk> {

    /**
     * 获取截止日期
     *
     * @param startDate 开始时间
     * @param gzrts     工作日天数
     */
    Date getJzsj(Date startDate, Integer gzrts);

    /**
     * 计算两个日期之间的工作日
     */
    int jsTwoDateBetween(Date kssj, Date jssj);

    BigDecimal wxDays(Date startTime, Date endTime);

    int getLeaveDays(Date startTime, Date endTime);


    Date judgeStart(Date starttime, Date endTime) throws ParseException;

    Date judgeEnd(Date starttime, Date endTime) throws ParseException;

    Date initializeDate(Date datetime);

    List DayCompare(Date fromDate, Date toDate);
}
